package com.iyunwen.datatool.datastorage;

import com.iyunwen.datatool.model.vo.BaseNormalizationDataVO;

import java.util.List;

/**
 * @description: 数据存储
 * @author: wangyu
 * @create: 2020-03-20 14:41
 */
public interface DataStorage<T extends BaseNormalizationDataVO> {
    /**
     * 创建表
     * @param tableName
     * @return
     */
    void createTable(String tableName);

    /**
     * 数据入库
     * @param eventData
     * @return
     */
    void insertAllDataToDatabase(List<T> eventData, String tableName);

}
